package es.upv.epsa.mobweb.moneyback;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class SplashScreen extends Activity{
	private static final long SPLASH_DISPLAY_TIME = 3000;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splashscreen);
		
		displaySplash();
	}
	
	
	private void displaySplash(){
		new Handler().postDelayed(new Runnable(){

			@Override
			public void run() {
				//Intent mainIntent = new Intent(SplashScreen.this, UserLoginActivity.class);
				Intent mainIntent = new Intent(SplashScreen.this, UserLoginActivity.class);
				SplashScreen.this.startActivity(mainIntent);
				SplashScreen.this.finish();
			}
			
		}, SPLASH_DISPLAY_TIME);
	}
}
